Skip to content

Conversation

@JukkaL
Copy link
Collaborator

@JukkaL JukkaL commented Aug 12, 2025

Just skip an in irbuild test if running on a free-threaded build, since the IR looks different if free threading is enabled.

Only this one test was failing for me on Python 3.14.0rc1.

Just skip an in irbuild test if running on a free-threaded build,
since the IR looks different if free threading is enabled.
@JukkaL JukkaL requested a review from ilevkivskyi August 12, 2025 16:47
if options is None:
# Skipped test case
return
if "_withgil" in testcase.name and IS_FREE_THREADED:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Btw, as an option, you can add an opposite marker _withnogil, and have two copies of the problematic test with both markers and the different outputs for each marker (I remember we had something similar for daemon, where the order of error messages depends on whether we use cache or not).

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that's a good idea. In this case the free threading variant doesn't seem super useful, and a better way to test for the free threading behavior would be to have multi-threaded perf scaling benchmarks. But in the future it seems likely that we'll want separate no-GIL irbuild test cases, and we can implement your idea then.

@JukkaL JukkaL merged commit a0c5238 into master Aug 13, 2025
13 checks passed
@JukkaL JukkaL deleted the mypyc-fix-test-free-threaded branch August 13, 2025 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants